package com.gdust.hzx.product.mapper;

import com.gdust.hzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: CategoryMapper
 * Package: com.gdust.hzx.product.mapper
 * Description:
 *
 * @Author syun
 * @Create 2024/12/25 20:13
 * @Version 1.0
 */
@Mapper
public interface CategoryMapper {
    /**
     * 从数据库中查询一级分类
     * @return
     */
    List<Category> selectOneCategory();

    /**
     * 查询所有分类
     * @return
     */
    List<Category> findAll();
}
